<template>
	<!-- <view class="bgcolor">
		<header-top :messageInfo="{typeFlag:true,message:'关于我们'}"></header-top>
		<view class="conts margin_top">
			<view v-for="(item,index) in aboutCont" :key="index" class="flexbetween"
				style="background-color: #fff;padding:30rpx 40rpx;box-sizing: border-box;border-bottom: 2rpx solid #f6f6f6;">
				{{item}}
				<u-icon name='arrow-right'></u-icon>
			</view>
		</view>
	</view> -->
	<view>
		<header-top :messageInfo="{typeFlag:true,message:title}"></header-top>
		<view class="aboutustext">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>
<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				content:"",
				current:1,//1关于我们3用户须知
			}
		},
		computed:{
			title(){
				if(this.current==3){
					return "拓客服务协议"
				}else if(this.current==2){
					return "拓客保护政策"
				}else if(this.current==1){
					return "关于我们"
				}else{
					return "活动"
				}
			}
		},
		onLoad(options) {
			this.current= options.msg
			this.init()
		},
		methods: {
			init(){
				httpRequest.request('/employeesapi/index/getConfigInfo', 'GET', {
				}).then(resp => {
					if(this.current==3){
						this.content = resp.data.yg_user_xy
					}
					if(this.current==2){
						this.content = resp.data.yg_user_yszc
					}
					if(this.current==1){
						this.content = resp.data.about_us
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.aboutustext{
		padding: 30rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #000000;
		text-indent: 60rpx;
	}
</style>
